package com.elsa.smart_buffet.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.elsa.smart_buffet.pojo.Order;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.data.repository.query.Param;

import java.sql.Date;
import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {

    List<Order> selectAllOrderInOrderById();

    List<Order> selectOrderInOrderByTime(@Param("date1") String date1, @Param("date2") String date2);

    List<Order> selectOrderByConsumerName(@Param("name") String name);

    List<Order> selectOrderByCId(@Param("cId") String cId);

}